<form 
  action ='<?php echo url_for('socepmi/filter') ?>' 
  id='form_filter_socepmi' 
  name='form_filer_socepmi' 
  method='POST' 
>

<table class="form">
	<tr><th colspan="2" class="title">Filtro</th></tr>
      <tr>
        <th><?php echo $form['nm_sistema']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['nm_sistema']->render(
        			array(
        				'name' => 'filter[nm_sistema]',
        				'value' => $filter['nm_sistema']
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['id_sistema_pai']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['id_sistema_pai']->render(
        			array(
        				'name' => 'filter[id_sistema_pai]',
        				'value' => $filter['id_sistema_pai']
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_sobre']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_sobre']->render(
        			array(
        				'name' => 'filter[ds_sobre]',
        				'value' => $filter->get('ds_sobre')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_endereco']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_endereco']->render(
        			array(
        				'name' => 'filter[ds_endereco]',
        				'value' => $filter->get('ds_endereco')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_servico']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_servico']->render(
        			array(
        				'name' => 'filter[ds_servico]',
        				'value' => $filter->get('ds_servico')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_twitter']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_twitter']->render(
        			array(
        				'name' => 'filter[ds_twitter]',
        				'value' => $filter->get('ds_twitter')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_facebook']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_facebook']->render(
        			array(
        				'name' => 'filter[ds_facebook]',
        				'value' => $filter->get('ds_facebook')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_you_tube']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_you_tube']->render(
        			array(
        				'name' => 'filter[ds_you_tube]',
        				'value' => $filter->get('ds_you_tube')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_orkut']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_orkut']->render(
        			array(
        				'name' => 'filter[ds_orkut]',
        				'value' => $filter->get('ds_orkut')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_flickr']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_flickr']->render(
        			array(
        				'name' => 'filter[ds_flickr]',
        				'value' => $filter->get('ds_flickr')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_maps']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_maps']->render(
        			array(
        				'name' => 'filter[ds_maps]',
        				'value' => $filter->get('ds_maps')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_termo_uso']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_termo_uso']->render(
        			array(
        				'name' => 'filter[ds_termo_uso]',
        				'value' => $filter->get('ds_termo_uso')
        			)	
        		)
        	?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['ds_como_comprar']->renderLabel() ?></th>
        <td>
        	<?php 
        		echo $form['ds_como_comprar']->render(
        			array(
        				'name' => 'filter[ds_como_comprar]',
        				'value' => $filter->get('ds_como_comprar')
        			)	
        		)
        	?>
        </td>
      </tr>
	<tr>
		<td colspan="2">
			<input type="submit" value=":: Filtrar ::" />
			&nbsp;
			<?php
			    if($filter->ativo()):
    				echo link_to(
    					':: Limpar ::',
    					$sf_context->getModuleName().'/filter',
    					array('class'=>'botao')
    				);
				endif;
			?>
		</td>
	</tr>
</table>
</form>